<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id="app">
  <Wind></Wind>
  <!--isShow是Vue实例对象里面的变量-->
  <button v-show="isShow">我是app模板的按钮</button>
</div>
<template id="cpn">
  <div>
    <!--isShow是Vue组件模板对象里面的变量-->
    <solt v-show="isShow">我是cpn模板的插槽</solt>
  </div>
</template>
<script>
  Vue.component("Wind", {
    template: "#cpn",
    data() {
      return {
        isShow: false
      }
    }
  });
  const vm = new Vue({
    el: "#app",
    data: {
      isShow: true
    }
  })
</script>
</body>
</html>